import React from 'react';
import ReactDom from 'react-dom';
import App from './src/views/App';

import { BrowserRouter, Route, Switch } from "react-router-dom";

const About = () => <h2>页面一</h2>;
const Users = () => <h2>页面二</h2>;


ReactDom.render(
    <BrowserRouter>
        <Switch>
            <Route path="/" exact component={App} />
            <Route path="/about/" component={About} />
            <Route path="/users/" component={Users} />
        </Switch>
    </BrowserRouter>
    , document.getElementById('root'));